/* ============================ */
/* CSS for control sap.m/Panel  */
/* Base theme                   */
/* ============================ */

.sapMPanel {
	overflow: hidden;
	box-sizing: border-box;
	// The following needed for calculation of height for content child
	position: relative;
}

.sapMPanelHdr {
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: none;
	height: 3rem;
	line-height: 3rem;
	padding: 0 1rem;
	margin: 0;

	/*
	* To improve readability Mobile Safari automatically increases
	* the size of small text so let's disable this
	*/
	-webkit-text-size-adjust: none;

	font-weight: @sapUiFontHeaderWeight;
	font-size: @sapMFontHeader4Size;
	font-family: @sapUiFontHeaderFamily;
	color: @sapUiGroupTitleTextColor;
	background-color: @sapUiGroupTitleBackground;
}

.sapMPanelContent {
	padding: 1rem;
	box-sizing: border-box;
	overflow: auto;
	white-space: normal;
}

.sapMPanelExpandablePart {
	clear: both;
}

.sapMPanelExpandableIcon {
	position: absolute;
	width: 3rem;
	line-height: 3rem;
	font-size: 1rem;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	color: @sapUiContentIconColor;

	&:focus {
		outline: none;
	}

	&:focus::after {
		content: "";
		position: absolute;
		pointer-events: none;
		top: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		border: 1px dotted @sapUiContentFocusColor;
	}

	html[data-sap-ui-browser^="ie"].sap-desktop &:focus::after {
		border-style: dashed;
	}
}

.sapMPanelExpandableIconExpanded {
	display: inline-block;
	-webkit-transform: translateY(-50%) rotate(90deg);
	transform: translateY(-50%) rotate(90deg);
}

html[data-sap-ui-animation='on'] {
	.sapMPanelExpandableIcon {
		/* 400ms is standard jQuery duration */
		-webkit-transition: -webkit-transform 0.4s ease-out;
		transition: transform 0.4s ease-out;
	}

	.sapMPanelExpandableIconExpanded {
		/* 400ms is standard jQuery duration */
		-webkit-transition: all 0.4s ease-out;
		transition: all 0.4s ease-out;
	}
}

.sapMPanelWrappingDiv,
.sapMPanelWrappingDivTb {
	position: relative;
}

/* if Panel is expandable, we do not wish toolbar to come with own border */
.sapMPanelWrappingDivTb > .sapMTB {
	border-width: 0;
}

.sapMPanelWrappingDiv.sapMPanelWrappingDivExpanded {
	border-bottom-width: 0;
}

html.sap-tablet .sapUiFioriObjectPage > section > .sapMPanel,
html.sap-desktop .sapUiFioriObjectPage > section > .sapMPanel {
	margin: 1rem 0;
	padding: 0 1rem;
	box-sizing: border-box;
}

.sapMPanel .sapMPanelWrappingDiv .sapMPanelHdr,
.sapMPanel .sapMPanelWrappingDivTb .sapMIBar.sapMTB {
	padding-left: 0;
	margin-left: 3rem;

  	>:first-child {
	  margin-left: 0;
	}
}

/* mixin call for creating container content padding classes (arguments: rootContainer, contentSelector) */
.sapUiContainerContentPadding(~".sapMPanel", ~"> .sapMPanelContent");

/* workaround for drawing issue in IE - ensures that the content will be redrawn */
html[data-sap-ui-animation='on'][data-sap-ui-browser^="ie"] .sapMPanelContent {
	transform: translate(0, 0);
}